<?php

use Phoo\db;
require_once 'db/model.php';

class Player extends db\Model {
	protected function create(){
		$this->name = new db\StringProperty(array("required" => true));
	}
}

$query = Player::all()->filter("name","jojo");

foreach($query as $player){
	var_dump($player->name);
}

foreach (Player::all() as $player){
	var_dump($player->name);
}

